package aiku.numericalcontroloa.Model.Entity.EmployeeAttendance;

import aiku.numericalcontroloa.Model.Entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.sql.Time;

/**
 * @Author 黄广庭
 * @Date 2024/2/26 17:13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "clockin_rule")
public class ClockinRule extends BaseEntity implements Serializable {
    @TableField(value = "employee_id")
    String employeeId;  //员工id

    @TableField(value = "department_id")
    String departmentId;    //部门id

    @TableField(value = "attendance_dates")
    String attendanceDates; //出勤日期（年-月-日）

    @TableField(value = "forenoon_checkin_time")
    Time forenoonCheckinTime;   //上午正常签到时间

    @TableField(value = "forenoon_checkout_time")
    Time forenoonCheckoutTime;  //上午正常签退时间

    @TableField(value = "afternoon_checkin_time")
    Time afternoonCheckinTime;  //下午正常签到时间

    @TableField(value = "afternoon_checkout_time")
    Time afternoonCheckoutTime; //下午正常签退时间

    @TableField(value = "clockin_time_period")
    Long clockinTimePeriod; //打卡时间段

    @TableField(value = "clockin_position")
    String clockinPosition; //正常打卡位置

    @TableField(value = "rule_type")
    Integer ruleType;   //规则类型（0个人规则，1部门规则）
}
